package com.urfresh.sp.flume.dto.v2;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;

/**
 * Created by urfresh.mark on 2016/9/12.
 */
public class Click{
    @ApiModelProperty(value = "点击元素的名称：如商品id，渠道名称等", required = true)
    @NotEmpty(message = "点击元素不能为空")
    @JSONField(ordinal = 0)
    String name;

    @ApiModelProperty(value = "元素的类型，如：商品，渠道", required = true)
    @NotEmpty(message = "元素名称不能为空")
    @JSONField(ordinal = 1)
    String type;

    @ApiModelProperty(value = "点击次数", required = true)
    @Min(0)
    @JSONField(ordinal = 2)
    String count;

    @ApiModelProperty(value = "元素对应的值，如果没有可以为空", required = false)
    @JSONField(ordinal = 3)
    String value;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }
}
